# -*- coding: utf-8 -*-
# 第一种运行方式
# from scrapy import cmdline
#
# cmdline.execute("scrapy crawlall".split())

# 第二种运行方式
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings

settings = get_project_settings()

crawler = CrawlerProcess(settings)

crawler.crawl('youku')
# crawler.crawl('tencent')
# crawler.crawl('bilibili')

crawler.start()
crawler.start()
crawler.start()
